package Public_Protected_Default_Private;

public class MyClass {

    //同类中，四种权限控制符修饰，本类中都能使用变量
    public int num = 10;
    protected int num2 = 12;
    int num3 = 13;
    private int num4=16;

    private int num1 = 11;

    public void method() {
        System.out.println(num);
        System.out.println(num1);
    }

}
